From 6c34121355684c3e553718b93fde33c7c4c231cb Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 23 Nov 2000 20:36:02 +0000 Subject: [PATCH] (decode_coding_emacs_mule): Fix the case of CODING_EOL_LF, which used an uninitialized value of c. --- src/coding.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/coding.c b/src/coding.c index f44efa9415e..fa79b0b4fdd 100644 --- a/src/coding.c +++ b/src/coding.c @@ -616,9 +616,8 @@ decode_coding_emacs_mule (coding, source, destination, src_bytes, dst_bytes) if (*src == '\r') { - int c; + int c = *src++; - src++; if (coding->eol_type == CODING_EOL_CR) c = '\n'; else if (coding->eol_type == CODING_EOL_CRLF) -- 2.30.2